//
//  UIViewController+KeyBoardHelp.h
//  playcar
//
//  Created by ddkj on 2018/7/31.
//  Copyright © 2018年 ljkj. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^ShowKeyBoardBlock)(CGFloat keyboardH);
typedef void(^HideKeyBoardBlock)(void);

@interface UIViewController (KeyBoardHelp)

@property (nonatomic, copy) ShowKeyBoardBlock showBlock;
@property (nonatomic, copy) HideKeyBoardBlock hideBlock;

//调用此方法不用时要记得调用cancelKeyBoardNotification注销监听
- (void)registKeyBoardNotification:(ShowKeyBoardBlock)showKeyBoardBlock hideKeyBoardBlock:(HideKeyBoardBlock)hideKeyBoardBlock;

//不用时注销监听
- (void)cancelKeyBoardNotification;

@end
